<?php
/* @var $this CategoriesController */
/* @var $dataProvider CActiveDataProvider */

$this->menu=array(
	array('label'=>'Create Categories', 'url'=>array('create')),
	array('label'=>'Manage Categories', 'url'=>array('admin')),
);
?>

<span><h3><?php echo $category->breadcrumbs; ?></h3></span>

<h1>Categories</h1>

<span><?php echo CHtml::link(CHtml::encode('Добавить изображение'), array('directories/index', 'cat'=>isset($_GET['id']) ? $_GET['id'] : 1)); ?></span>

<div class="left-menu">
    <?php foreach($categories as $cat): ?>
        <a href="<?php echo $cat->url; ?>">
            <?php echo $cat->name; ?>
        </a><br />
    <?php endforeach; ?>
</div>
<div class="content">
    <?php foreach($images as $image): ?>
        <div class="files">
        <span><?php echo CHtml::image($image->src, $image->name, array()); ?></span>
        </div>
    <?php endforeach; ?>
</div>